<?php
 class Core_Business_Payment extends Core_Business_Abstract {
	private $_id;
	private $_label;
	const ZERO = 0;
	public function getId() {return $this->_id;}
	
	public function setId($value) {
		if($value) {
			$this->_id = $value;
		}
		else { 
			throw new Exception("Property value for object ".__CLASS__.", property ".__METHOD__);
		}	
	}
	public function getLabel() {return $this->_label;}
	public function setLabel($value) {
		if($value) {
			$this->_label = $value;
		}
		else {
			throw new Exception("Property value for object ".__CLASS__.", property ".__METHOD__);	
		}
	}
	
	public static function getAll() {
		$map = new Core_Data_Mappers_Payment();
		$collection = $map->fetchAll();
		return $collection;
	}
	public static function getById($id) {
		$map = new Core_Data_Mappers_Payment();
		$category = $map->find($id);
		return $category;
	}
	
}
?>
